CC:=gcc

aton_test: aton_test.c
	$(CC) -o $@ $^
	-./$@
	-rm -rf $@

socket_client: socket_client.c
	$(CC) -o $@ $^ -lrt -pthread

socket_service: socket_service.c
	$(CC) -o $@ $^ -lrt -pthread


socket_any_client: socket_any_client.c
	$(CC) -o $@ $^ -lrt -pthread

socket_any_service: socket_any_service.c
	$(CC) -o $@ $^ -lrt -pthread

udp_client: udp_client.c
	$(CC) -o $@ $^ -lrt -pthread

udp_service: udp_service.c
	$(CC) -o $@ $^ -lrt -pthread